home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / ImageMagick / Makefile < prev    next >
Encoding:
Makefile  |  1994-08-02  |  4.0 KB  |  164 lines

  1. #  Generic makefile for display, animate, montage, and import for
  2. #  computers that do not have xmkmf.
  3. #
  4. #  Copyright 1994 E. I. du Pont de Nemours & Company
  5. #
  6. #  Permission to use, copy, modify, distribute, and sell this software and
  7. #  its documentation for any purpose is hereby granted without fee,
  8. #  provided that the above Copyright notice appear in all copies and that
  9. #  both that Copyright notice and this permission notice appear in
  10. #  supporting documentation, and that the name of E. I. du Pont de Nemours
  11. #  & Company not be used in advertising or publicity pertaining to
  12. #  distribution of the software without specific, written prior
  13. #  permission.  E. I. du Pont de Nemours & Company makes no representations
  14. #  about the suitability of this software for any purpose.  It is provided
  15. #  "as is" without express or implied warranty.
  16. #
  17. #  E. I. du Pont de Nemours & Company disclaims all warranties with regard
  18. #  to this software, including all implied warranties of merchantability
  19. #  and fitness, in no event shall E. I. du Pont de Nemours & Company be
  20. #  liable for any special, indirect or consequential damages or any
  21. #  damages whatsoever resulting from loss of use, data or profits, whether
  22. #  in an action of contract, negligence or other tortious action, arising
  23. #  out of or in connection with the use or performance of this software.
  24. #
  25.  
  26. # If your system does not have /usr/include/dirent.h, define NoDIRENT.
  27. #
  28. #DIRENT_DEFINES= -DNoDIRENT
  29.  
  30. #
  31. # Uncomment the following lines if you have the JPEG, TIFF, or XPM  libraries.
  32. # See README for more details.
  33. #
  34. #JPEG_DEFINES= -DHasJPEG
  35. #JPEG_INCLUDES= -I../jpeg
  36. #JPEG_LIBRARIES= -Ljpeg -ljpeg
  37. #TIFF_DEFINES= -DHasTIFF
  38. #TIFF_INCLUDES= -I../tiff/libtiff
  39. #TIFF_LIBRARIES= -Ltiff/libtiff -ltiff
  40. #XPM_DEFINES= -DHasXPM
  41. #XPM_INCLUDES= -I../xpm
  42. #XPM_LIBRARIES= -Lxpm -lXpm
  43.  
  44. MAGICK_INCLUDES= -Imagick
  45. MAGICK_LIBRARIES= -Lmagick -lMagick
  46. X_INCLUDES= -I/usr/local/include
  47. X_LIBRARIES= -L/usr/local/lib -lX11
  48.  
  49. CC= cc -O -I/usr/include/X11R5
  50. DESTDIR= /usr/bin/X11
  51. INSTALL = install -c
  52. RM= /bin/rm -f
  53.  
  54. DEFINES= $(MAGICK_INCLUDES) $(DIRENT_DEFINES) $(JPEG_DEFINES) $(JPEG_INCLUDES)\
  55.   $(TIFF_DEFINES) $(TIFF_INCLUDES) $(XPM_DEFINES) $(XPM_INCLUDES) $(X_INCLUDES)
  56. SYS_LIBRARIES= $(MAGICK_LIBRARIES) $(JPEG_LIBRARIES) $(TIFF_LIBRARIES) \
  57.   $(XPM_LIBRARIES) $(X_LIBRARIES) -lm
  58.  
  59. DisplayObjects= display.o
  60. ImportObjects= import.o
  61. MontageObjects= montage.o
  62. AnimateObjects= animate.o
  63. ConvertObjects= convert.o
  64. MogrifyObjects= mogrify.o
  65. CombineObjects= combine.o
  66. SegmentObjects= segment.o
  67.  
  68. PROGRAMS= display import montage animate convert mogrify combine segment
  69.  
  70. CFLAGS= $(DEFINES)
  71.  
  72. all: libmagick.a $(PROGRAMS)
  73.  
  74. libmagick.a: 
  75.     (cd magick; make CFLAGS="$(CFLAGS)")
  76.  
  77. clean::
  78.     (cd magick; make clean)
  79.  
  80. display: $(DisplayObjects)
  81.     $(RM) $@
  82.     $(CC) -o $@ $(DisplayObjects) $(SYS_LIBRARIES)
  83.  
  84. clean::
  85.     $(RM) display
  86.  
  87. install:: display
  88.     $(INSTALL) display $(DESTDIR)
  89.  
  90. import: $(ImportObjects)
  91.     $(RM) $@
  92.     $(CC) -o $@ $(ImportObjects) $(SYS_LIBRARIES)
  93.  
  94. clean::
  95.     $(RM) import
  96.  
  97. install:: import
  98.     $(INSTALL) import $(DESTDIR)
  99.  
  100. montage: $(MontageObjects)
  101.     $(RM) $@
  102.     $(CC) -o $@ $(MontageObjects) $(SYS_LIBRARIES)
  103.  
  104. clean::
  105.     $(RM) montage
  106.  
  107. install:: montage
  108.     $(INSTALL) montage $(DESTDIR)
  109.  
  110. animate: $(AnimateObjects)
  111.     $(RM) $@
  112.     $(CC) -o $@ $(AnimateObjects) $(SYS_LIBRARIES)
  113.  
  114. clean::
  115.     $(RM) animate
  116.  
  117. install:: animate
  118.     $(INSTALL) animate $(DESTDIR)
  119.  
  120. convert: $(ConvertObjects)
  121.     $(RM) $@
  122.     $(CC) -o $@ $(ConvertObjects) $(SYS_LIBRARIES)
  123.  
  124. clean::
  125.     $(RM) convert
  126.  
  127. install:: convert
  128.     $(INSTALL) convert $(DESTDIR)
  129.  
  130. mogrify: $(MogrifyObjects)
  131.     $(RM) $@
  132.     $(CC) -o $@ $(MogrifyObjects) $(SYS_LIBRARIES)
  133.  
  134. clean::
  135.     $(RM) mogrify
  136.  
  137. install:: mogrify
  138.     $(INSTALL) mogrify $(DESTDIR)
  139.  
  140. combine: $(CombineObjects)
  141.     $(RM) $@
  142.     $(CC) -o $@ $(CombineObjects) $(SYS_LIBRARIES)
  143.  
  144. clean::
  145.     $(RM) combine
  146.  
  147. install:: combine
  148.     $(INSTALL) combine $(DESTDIR)
  149.  
  150. segment: $(SegmentObjects)
  151.     $(RM) $@
  152.     $(CC) -o $@ $(SegmentObjects) $(SYS_LIBRARIES)
  153.  
  154. clean::
  155.     $(RM) segment
  156.  
  157. install:: segment
  158.     $(INSTALL) segment $(DESTDIR)
  159.  
  160. clean::
  161. clean::
  162.     $(RM) *.ln *.bak *.o core errs ,* *~ *.a .emacs_* make.log MakeOut
  163.  
  164.